package com.wzy.mall.mapper.adminMapper;

import com.wzy.mall.model.bo.adminBO.OrderByPageBO;
import com.wzy.mall.model.bo.adminBO.OrderChangeBO;
import com.wzy.mall.model.pojo.adminPOJO.OrderPOJO;
import com.wzy.mall.model.pojo.adminPOJO.SpecPOJO;
import com.wzy.mall.model.vo.adminVO.OrderInfoVO;
import com.wzy.mall.model.vo.adminVO.OrderPageVO;
import com.wzy.mall.model.vo.adminVO.OrderStatesVO;
import com.wzy.mall.model.vo.adminVO.SpecVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    int findTotalCount(@Param("order") OrderByPageBO orderByPageBO);

    List<OrderPageVO> findOrderByPage(@Param("order") OrderByPageBO orderByPageBO, @Param("start") int start);

    OrderInfoVO findOrderByID(String id);

    List<OrderStatesVO> selectState();

    List<SpecVO> selectSpecByGoodsID(Integer goodsDetailId);

    int deleteOrderByID(String id);

    int updateOrder(OrderPOJO orderPOJO);

    SpecPOJO selectSpecByID(Integer spec);
}
